import request from '@/utils/request'

// 查询运动场景列表
export function listSportground(query) {
  return request({
    url: '/erysys/sportground/list',
    method: 'get',
    params: query
  })
}

// 查询运动场景详细
export function getSportground(id) {
  return request({
    url: '/erysys/sportground/' + id,
    method: 'get'
  })
}

// 新增运动场景
export function addSportground(data) {
  return request({
    url: '/erysys/sportground',
    method: 'post',
    data: data
  })
}

// 修改运动场景
export function updateSportground(data) {
  return request({
    url: '/erysys/sportground',
    method: 'put',
    data: data
  })
}

// 删除运动场景
export function delSportground(id) {
  return request({
    url: '/erysys/sportground/' + id,
    method: 'delete'
  })
}
